package com.quectel.util.common;

import java.util.LinkedHashMap;
import java.util.Map;

public class JavaBeanUtils {


    public static Map beanToMap(Object obj) {
        return JacksonUtils.parse(JacksonUtils.toJsonString(obj), LinkedHashMap.class);
    }

    public static <T> T mapToBean(Map map, Class<T> clazz) {
        return JacksonUtils.parse(JacksonUtils.toJsonString(map), clazz);
    }


}
